{% include 'head.html' %}
<body>
{% include 'header.html' %}
<script charset="utf-8" src="/static/kindeditor-3.4.4/kindeditor.js"></script>
<script>
        KE.show({
                id : 'article_content',
                width: '660px',
                height:'350px',
                resizeMode: '0',
                items : ['source', '|', 'justifyleft', 'justifycenter', 'justifyright','justifyfull', '|', 'selectall','title', 'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold','italic', 'underline', 'strikethrough', 'removeformat', '|', 'image','flash', 'media', 'table', 'hr', 'emoticons', 'link', 'unlink', ]
        });
</script>
<div id="Wrapper">
<div id="Article">
	<div id="Article-Form">
	<form method="post" action="{% if article %}/indoor/edit-article/{{ article.key }}{% else %}/indoor/save-article?is-page={{ is_page }}{% endif %}" id="form-Write">
		<label>article title:</label>
		<input type="text" name="article_title" class="input" value="{% if article %}{{ article.title }}{% endif %}" />
		<br /> &nbsp;&nbsp;
		<textarea name="article_content" rows="28" cols="68">{% if article %}{{ article.content }}{% endif %}</textarea>
		<br /> &nbsp;&nbsp;
		<input type="radio" name="article_attribute_for_sidebar" value="True" checked="checked" /> publish
		<input type="radio" name="article_attribute_for_sidebar" value="False" /> save
		<br /><br /><br /><br />
		
		<input type="radio" name="article_have_comment" value="True" /> True
		<input type="radio" name="article_have_comment" value="False" checked="checked" /> False
		<br /><br /><br /><br />
		
		<label>article Url:&nbsp;</label>
		<input type="text" name="title_url"  class="input" value="{% if article %}{{ article.title_url }}{% else %}{{ article_url_time }}{% endif %}" />
		<br />
		<label>article link:</label>
		<input type="text" name="title_link" class="input" value="{% if article %}{{ article.title_link }}{% endif %}"/>
		<br /><br /><br />
		{% for cate in category %}	
		<input type="checkbox" value="{{ cate.category_url }}" name="article_category_url" /> {{ cate.name }}
		{% endfor %}	
		<br />
		<input type="submit" name="Article-submit" id="Article-Submit" class="button-Article-submit" value="Publish"  />
	</form>
	</div>
</div>

{% include 'sidebar.html' %}
{% include 'footer.html' %}
</div>
</body>
</html>
